<?php
/**
 * Created by PhpStorm.
 * User: openoter
 * Date: 2018/12/9
 * Time: 21:33
 */

namespace app\admin\model;


use think\Model;

class Cls extends Model {
//    protected $table = 'class';
    protected $name = 'class';

    public function headTeachers() {
        return $this->belongsTo('teacher', 'head_teacher', 'id');
    }

}